$(document).ready(function () {
    $("#stu").click(function(){
        window.open('p2.html?role='+1, 'new', 'location=no, toolbar=no');
    })
    $("#tea").click(function(){
        window.open('p3.html?role='+2 ,'new', 'location=no, toolbar=no');
    })
    $("#exp").click(function(){
        window.open('p3.html?role='+3, 'new', 'location=no, toolbar=no');
    })
    var user=localStorage.getItem(schoolLoginUserInfo);
    if(user==null){
        toLogin();
    }
    var res =  eval('(' + user+ ')');
    if (res.role==4){
        getArrayByParam(1,null,null,null);
        localStorage.setItem(findRole,null);
    }else{
        top.location.href="reception.html";
    }
})

function serach() {
    var name = $("#serach").val();
    var role = localStorage.getItem(findRole);
    getArrayByParam(1, role, name,department);
}

